/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package TorrentEngine;

import java.io.OutputStream;

/**
 *
 * @author Dhaval Moliya
 */
public interface PeerSenderInterface {
 
//void send(ByteArrayOutputStream bs);

void setOutputStream(OutputStream opStream) throws Exception;
int queueControlMessage(byte[] byteArray)throws Exception;
int queueDataMessage(int aPieceIndex, int aBegin, int aLength, MTTorrent torrent, MTPeer peer)throws Exception;
}
